
<section class="itq-master-wrapper">
    <section class="itq-wrapper">
        <section class="product-grid">
            <section class="product clearfix">
                <section class="item-box colspan" style="width: 751px !important; padding: 10px 20px 20px 20px !important; height: auto !important;">
                    <section class="info-news">
                        <b>
                        	
                            <?php
								 
							   $str='select * from tb_article_category where publish=1 AND id='.$detail->parentid;
							   $cate=$lib->selectone( $str);
								
							?>
                            <a href="<?php echo $url.'list-news/'.$lib->maketitle($cate->title).'/'.$cate->id; ?>.html" 
                            style="color:#000;line-height:140%;">
                            	<?php echo $cate->title; ?>
                            </a>
                        </b>
                        <br>
                        <?php
							if($detail->created != '0000-00-00 00:00:00') 
								echo gmdate('d/m/Y H:i A ', strtotime($detail->created) + 7*3600);
							else echo '-';
						?>
                        <section class="news">
                            <h3 style="color:#00F;"><?php echo $detail->title; ?></h3>
                            <b><?php echo $detail->description; ?></b>
                            <article style="overflow:hidden;">
                     			<?php echo $detail->content; ?>
                            </article>
                        </section>
                        <?php require('upComment.php'); ?> 
                       
                    </section>
                </section><!--end .item-box-->
                <?php
				foreach($same as $k )
				{
					if(is_array($k))
					{
				?>
                
                
                <section class="item-box mainNews">
                    <figure>
                        <a href="<?php echo $url.'detail-news/'.$lib->makeTitle($k['title']).'/'.$k['id'] ?>.html">
                        <img src=<?php echo $k['image'] ?> alt="<?php echo $k['title'] ?>"/>
                        </a>
                    </figure>
                    <section class="info-news">
                        <b><?php echo $cate->title; ?></b><br>
                        <?php
							if($item['created'] != '0000-00-00 00:00:00') 
								echo gmdate('d/m/Y H:i:s A ', strtotime($item['created']) + 7*3600);
							else echo '-';
						?>
                        <section class="news">
                            <h3>
                                <a href="<?php echo $url.'detail-news/'.$lib->makeTitle($k['title']).'/'.$k['id'] ?>.html">
                                 <?php
					    
									if((strlen($k['title'])>100))
									{
										echo $lib->cut_string($k['title'],100);
									}
									else echo $k['title'];
								
								?>
                                </a>
                            </h3>
                            <p>
                           <?php
								if((strlen($k['description'])>180))
								{
									echo $lib->cut_string($k['description'],180);
								}
								else echo $k['description'] ;
							 ?>
                            </p>
                        </section>
                    </section>
                </section><!--end .item-box-->
                <?php
					}
				}
				?>
                
                
            </section><!--end .product-->
        </section>
    </section>
</section><!--end .itq-master-wrapper-->